package org.ithang.tools.model;

import java.util.HashMap;
import java.util.Map;

import org.ithang.tools.util.StrUtils;




public class ResultValues extends HashMap<String, Object>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public ResultValues() {}
	
	public ResultValues(Map<String,Object> values) {
		values.forEach((k,v) ->{
			put(k, v);
		});
	}
	
	public Object add(String key, Object value) {
		return super.put(StrUtils.dropUnderline(key), value);
	}
	
	@Override
	public Object put(String key, Object value) {
		return super.put(StrUtils.dropUnderline(key), value);
	}

}
